package com.itmk.web.sys_user.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("sys_user")
public class SysUser {

    @TableId(type = IdType.AUTO)
    private Long userId;
    private String username;
    private String password;
    private String phone;
    private String email;
    private String sex;
    private String isAdmin;
    //不属于用户表，需要排除
    @TableField(exist = false)
    private String roleId;
    //账户是否过期：1正常，0过期
    private boolean isAccountNonExpried = true;
    //密码是否锁定：1正常，0锁定
    private boolean isAccountNonLocked = true;
    //密码是否被过期：1正常，0过期
    private boolean isCredentialsNonExpired = true;
    //账户是否启用：1正常，0禁用
    private boolean isEnabled = true;
    private String NickName;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;


}
